package com.yi.model;

import java.util.Date;

/**
 * 用户bean
 * @author YI
 * @date 2018-3-15 16:03:51
 */
public class User {
    private Integer id;
    private String name;
    private Integer gender;
    private Integer goldCoin;
    private Date crtTime;

    public User() {
        super();
    }

    public User(String name, Integer gender, Integer goldCoin, Date crtTime) {
        this.name = name;
        this.gender = gender;
        this.goldCoin = goldCoin;
        this.crtTime = crtTime;
    }

    public User(Integer id, String name, Integer gender, Integer goldCoin, Date crtTime) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.goldCoin = goldCoin;
        this.crtTime = crtTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getGoldCoin() {
        return goldCoin;
    }

    public void setGoldCoin(Integer goldCoin) {
        this.goldCoin = goldCoin;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", goldCoin=" + goldCoin +
                ", crtTime=" + crtTime +
                '}';
    }
}
